package com.gd.iot.energy.pojo.common.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @ClassName ColumnVO
 * @Description 列表头
 */
@Setter
@Getter
@ToString
@JsonInclude(Include.NON_NULL)
public class ColumnVO implements Serializable {
    /**
     * @fieldName: name
     * @fieldType: String
     * @Description: 字段名
     */
    private String name;

    /**
     * @fieldName: key
     * @fieldType: String
     * @Description: 字段code，需要和导出列表对象中字段一致
     */
    private String key;

    /**
     * @fieldName: ignore
     * @fieldType: boolean
     * @Description: 导出是否需要忽略，
     */
    private Boolean ignore;

    /**
     * @fieldName: show
     * @fieldType: boolean
     * @Description: 是否需要页面展现
     */
    private Boolean show;

    /**
     * @fieldName: width
     * @fieldType: String
     * @Description: 宽度
     */
    private String width;

    /**
     * 前端用数组下标
     */
    private String index;

    /**
     * @fieldName: unit
     * @fieldType: String
     * @Description: 单位
     */
    private String unit;

    /**
     * @fieldName: valueType
     * @fieldType: String
     * @Description: 数据类型
     */
    private String valueType;

    /**
     * @fieldName: dateType
     * @fieldType: String
     * @Description: 日期类型
     */
    private String dateType;

    /**
     * @fieldName: sort
     * @fieldType: String
     * @Description: 是否排序
     */
    private String sort;

    /**
     * @fieldName: riseOrDrop
     * @fieldType: Integer
     * @Description: 0为升序，1为降序
     */
    private Integer riseOrDrop;

    /**
     * @fieldName: booNormal
     * @fieldType: String
     * @Description: 是否反序
     */
    private String booNormal;

    /**
     * @fieldName: mergeName
     * @fieldType: String
     * @Description: 合并code
     */
    private String mergeName;

    /**
     * @fieldName: mergeNamekey
     * @fieldType: String
     * @Description: 合并名称
     */
    private String mergeNameKey;
}
